import request from '@/utils/request'

export function isShowButtonSign(base) {
  return request({
    url: '/orders/orders/isShow/'+base,
    method: 'get',
  })
}
export function isShowButton(base) {
  return request({
    url: '/orders/orders/isShow/'+base,
    method: 'get',
  })
}
export function revertScore(base) {
  return request({
    url: '/orders/orders/revert/'+base,
    method: 'delete',
  })
}
// 添加学分
export function addUserScore(base,uids,tids) {
  return request({
    url: '/orders/orders/'+base+'/'+uids+'/'+tids,
    method: 'post',
  })
}

// 查询预约订单列表
export function listOrders(query) {
  return request({
    url: '/orders/orders/list',
    method: 'get',
    params: query
  })
}

// 查询预约订单详细
export function getOrders(id) {
  return request({
    url: '/orders/orders/' + id,
    method: 'get'
  })
}

// 新增预约订单
export function addOrders(data) {
  return request({
    url: '/orders/orders',
    method: 'post',
    data: data
  })
}

// 修改预约订单
export function updateOrders(data) {
  return request({
    url: '/orders/orders',
    method: 'put',
    data: data
  })
}

// 删除预约订单
export function delOrders(id) {
  return request({
    url: '/orders/orders/' + id,
    method: 'delete'
  })
}
